<tagLib name="html"/>
<include file="./Index/Tpl/Home/default/public/header.htm" />
<link href="__PUBLIC__/css/inn-apply-form.css" type="text/css" rel="stylesheet" />
<script src="http://cdn.jquerytools.org/1.2.7/form/jquery.tools.min.js"></script>
<script type="text/javascript">
(function($){
    $(function(){
        //表单验证
        $("#myform").validator({
            messageClass:"yellow",
            position:"center right",
            offset:[0,10]
        });
        //表单效果
        $("#myform input").focus(function(){
            $(this).addClass('input_hover');
        }).blur(function(){
            $(this).removeClass('input_hover');
        });
    });
    window.getChildType = function(typeId) {
        obj = $("#myform select[name='type']");
        obj.nextAll().remove();
        $.get('__KZURL__/apply/getChildType', {typeId: typeId}, function(data){
            htmlStr = '';
            $.each(data, function(i, n){
                htmlStr += '<option value="'+i+'">'+n+'</option>';
            });
            if(htmlStr!='') {
                htmlStr = '<select name="trueType">'+htmlStr+'</select>';
                obj.after(htmlStr);
            }
        },'json');
    }
})(jQuery);
</script>
<!--主体内容 start-->
<div class="content">
    <div class="zsjm_nr">
        <div class="zsjm_title">
            <ul class="zsjm_bq">
                <li class="zsjm_bt_hover"><span class="zsjm_num">1</span><span><a href="javascript:;">客栈信息</a></span></li>
                <li class="zsjm_bt"><span class="zsjm_num">2</span><span><a href="javascript:;">联系信息</a></span></li>
                <li style="float:right;"><img src="__PUBLIC__/images/zsjm.jpg" /></li>
            </ul>
        </div>
        <div class="sjht_fd bg_gray1">
          <form id="myform" method='post' action='__KZURL__/apply/submit' onsubmit='return confirm("请确保您填写的资料真实准确，是否确认提交？")'>
            <ul>
                <li class="sjht_jtxx">
                    <p class="zc_xx">
                        <span class="zc_xx_title">客栈名称</span>
                        <span><input type="text" name='name' required="required" data-message="客栈名称必须填写！" /></span>
                    </p>
                </li>
                <li class="sjht_jtxx">
                    <p class="zc_xx">
                        <span class="zc_xx_title">客栈英文名称</span>
                        <span><input type="text" name='name_en' required="required" data-message="客栈英文名称必须填写！" /></span>
                    </p>
                </li>
                <li class="sjht_jtxx">
                    <p class="zc_xx">
                        <span class="zc_xx_title">客栈类型</span>
                        <span class="dx">
                            <html:select name='type' options='InnTypeList' change='getChildType(this.value)' />
                        </span>
                    </p>
                </li>
                <li class="sjht_jtxx">
                    <p class="zc_xx">
                        <span class="zc_xx_title">客栈级别</span>
                        <span class="dx">
                            <html:select name='class' options='InnClassList' />
                        </span>
                    </p>
                </li>
                <li class="sjht_jtxx">
                    <p class="zc_xx">
                        <span class="zc_xx_title">开业时间</span>
                        <span><input type="text" name='openTime' required="required" data-message="开业时间必须填写！" /></span>
                    </p>
                </li>
                <li class="sjht_jtxx">
                    <p class="zc_xx">
                        <span class="zc_xx_title">房间数量</span>
                        <span><input type="text" name='roomCount' required="required" data-message="房间数量必须填写！" /></span>
                    </p>
                </li>
                <li class="kzss_new">
                    <p>
                        <span class="zc_xx_title">客栈设施</span>
                        <span class="kzss">
                            <html:checkbox name='facility' checkboxes='InnFacilityList' />
                        </span>
                    </p>
                </li>
                <!--
                <li class="sjht_jtxx">
                    <p class="zc_xx">
                        <span class="zc_xx_title">[客栈位置]</span>
                        <span><input type="text" /></span>
                    </p>
                </li>
                -->
                <li class="sjht_jtxx">
                    <p class="zc_xx">
                        <span class="zc_xx_title">客栈地址</span>
                        <span><input type="text" name='address' required="required" data-message="客栈地址必须填写！" /></span>
                    </p>
                </li>
                <li class="sjht_jtxx">
                    <p class="kzjs">
                        <span class="zc_xx_title">地理位置介绍</span>
                        <span class="bjk"><textarea name='location' required="required" data-message="地理位置介绍必须填写！"></textarea></span>
                    </p>
                </li>
                <!--
                <li class="sjht_jtxx">
                    <p class="zc_xx">
                        <span class="zc_xx_title">[客栈地图]</span>
                        <span><input type="text" /></span>
                        <span><a href="">本地上传…</a></span>
                    </p>
                </li>
                -->
                <li class="sjht_jtxx">
                    <p class="kzjs">
                        <span class="zc_xx_title">客栈简介</span>
                        <span class="bjk"><textarea name='shortintro' required="required" data-message="客栈简介必须填写！"></textarea></span>
                    </p>
                </li>
                <li class="sjht_jtxx">
                    <p class="kzjs">
                        <span class="zc_xx_title">客栈详细介绍</span>
                        <span class="bjk"><textarea name='introduction' required="required" data-message="客栈详细介绍必须填写！"></textarea></span>
                    </p>
                </li>
                <li class="sjht_jtxx">
                    <p class="kzjs">
                        <span class="zc_xx_title">客栈英文介绍</span>
                        <span class="bjk"><textarea name='introduction_en' required="required" data-message="客栈英文介绍必须填写！"></textarea></span>
                    </p>
                </li>
                <li class="sjht_jtxx">
                    <p class="kzjs">
                        <span class="zc_xx_title">客栈特色</span>
                        <span class="bjk"><textarea name='features' required="required" data-message="客栈特色必须填写！"></textarea></span>
                    </p>
                </li>
                <li class="kzss_new">
                    <p>
                        <span class="zc_xx_title">客栈主题</span>
                        <span class="kzss"><html:checkbox name='subject' checkboxes='InnSubjectList' /></span>
                    </p>
                </li>
                <li class="sjht_jtxx">
                    <p class="kzjs">
                        <span class="zc_xx_title">预订须知</span>
                        <span class="bjk"><textarea name='bookingPolicy' required="required" data-message="预订须知必须填写！"></textarea></span>
                    </p>
                </li>
                <li class="sjht_jtxx">
                    <p class="kzjs">
                        <span class="zc_xx_title">取消及更改规则</span>
                        <span class="bjk"><textarea name='rules' required="required" data-message="取消及更改规则必须填写！"></textarea></span>
                    </p>
                </li>
                <li class="sjht_jtxx">
                    <p class="kzjs">
                        <span class="zc_xx_title">优惠政策</span>
                        <span class="bjk"><textarea name='preferential' required="required" data-message="优惠政策必须填写！"></textarea></span>
                    </p>
                </li>
                <li class="sjht_jtxx">
                    <p class="zc_xx">
                        <span class="zc_xx_title">合作方式</span>
                        <span class="dx">
                            <html:select name='cooperation' options='InnCooperationList' />
                        </span>
                    </p>
                </li>
            </ul>
            <ul class="kt_next_two">
                <li>
                   <span>*放心上传您的资料，本资料严格保密，不会用于其它用途！</span>
                </li>
                <li>
                   <input class="jx" type="submit" name='detailsSubmit' value="保存客栈详情" />
                </li>
            </ul>
          </form>
        </div>
    </div>
</div>
<!--主体内容 end-->
<include file="./Index/Tpl/Home/default/public/footer.htm" />